<div id="content">
    <table>
    
    <tr>
        <form action="account/status/post_status.php" method="POST">
    </tr>
    <tr>
        <td><hr></td>
    </tr>
    <tr>
        <td>Comment</td>
    </tr>
    <tr>
        <td><textarea rows="5" cols="57" class="commentbox" name="poststatus" placeholder="comment here..."></textarea></td>
    </tr>
    </tr>
        <td><input type="hidden" value="<?php echo $_SESSION['user_id']; ?>" name="my_id" ></td>
    <tr>
    <tr>
        <td><input type="submit" value="Post"><hr><td>
    </tr>
    <tr>
        </form>
    </tr>
    
    <?php
                require_once("classes/getstatus.php");   
                $status = new User;
                $ctr = 0;
                $post_status = $status->getpostStatus();
                if($post_status != 0){
                    for($x=0;$x<count($post_status);$x++){
                        echo "<tr><td>".$post_status[$x]['fname'].' '.$post_status[$x]['lname']." :</td></tr>";
                        echo "<tr><td>".$post_status[$x]['status']."<br><hr></td></tr>";
                        $ctr+=1;
                    }
                }
    ?>
    
</table>
</div>

<div id="user_navigation">
    <table>
        <tr>
            <td>Good Day!,</td>
        </tr>
        <tr>
            <td><?php echo $_SESSION['fname'].' '.$_SESSION['lname']?></td>
        </tr>
        <tr>
            <td><a href="account/logout/logout.php">Logout</a></td>
        </tr>
    </table>
</div>